package com.hue.springcloud.service;

import com.hue.springcloud.service.impl.ConsumerServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "nacos-payment-provider",fallback = ConsumerServiceImpl.class)
public interface ConsumerService {
    @GetMapping("/payment/findById/{id}")
    public String findById(@PathVariable("id")long id);
}
